using FluentNHibernate.Mapping;

namespace MPBlog.Model.FluentNhibernateMap
{
    public class BlogSettingMap:ClassMap<BlogSetting>
    {
        public BlogSettingMap()
        {
            Id(m => m.Id).GeneratedBy.Identity();

            Map(m => m.BlogKey).Unique().Not.Nullable();
            Map(m => m.BlogValue).Not.Nullable();

            Map(m => m.CreatedTime).Not.Nullable();
            Map(m => m.LogicalDelete).Default("0");
        }
    }
}